package com.demo2do.fms.admin.service;

/**
 * 
 * @author Ysy
 *
 */
public interface GenericDataService {

    /**
     * 
     * @param clazz
     * @param id
     * @return
     */
    public <T> T load(Class<T> clazz, Long id);
    
    /**
     * 
     * @param <T>
     * @param clazz
     * @param code
     * @return
     */
    public <T> T load(Class<T> clazz, String code);
    
}
